import axios from 'axios'
export default {
    async getTable() {
        let { data } = await axios.get("/api/gettable");
        // console.log(data)
        const already = data.filter(i => i.zhuangtai == '学习中')
        const not  = data.filter(i => i.zhuangtai == '未学习')
        // console.log(already)
        // console.log(not)
        return { already, not ,data}
    }
}